 package itHeima.lesson3;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {

        /**
         *      获得键盘扫描对象，打印并输入 年龄以及对应的姓名
         */
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的年龄");
        int age = sc.nextInt();
        System.out.println("请输入你的姓名");
        String name = sc.next();
        System.out.println("Welcome :" + name);
        System.out.println("Your age is :" + age);
    }
}
